$('.travel-header-return').click(function(e){
    window.history.back(-1); 
    e.prevent();
})
//旅游首页模拟数据
var travelData=[
    {
        id:"100002007",
        src:"travel-look0401_02.jpg",
        title:"曼谷+芭提雅6日5晚自由 行（4钻）",
        price:"¥3060"
    },
    {
        id:"100002008",
        src:"travel-look0401_03.jpg",
        title:"美国东西海岸+夏威夷+波士顿+纽约+华盛顿+拉...",
        price:"¥9090"
    },
    {
        id:"100002009",
        src:"travel-look0401_04.jpg",
        title:"日本东京+大阪7日6晚自 由行【美食·购物】",
        price:"¥5353"
    },
    {
        id:"100002010",
        src:"travel-look0401_05.jpg",
        title:"意大利+梵蒂冈+瑞士+法 国+维罗纳13日跟团游...",
        price:"¥13999"
    },
    {
        id:"100002011",
        src:"travel-look0401_06.jpg",
        title:"普吉岛6日5万自由行·DIY自由订制，酒店任选海....",
        price:"¥1999"
    },
    {
        id:"100002012",
        src:"travel-look0401_07.jpg",
        title:"澳大利亚悉尼+黄金海岸+墨尔本自由行·11天9晚...",
        price:"¥1999"
    }
]

var travelHtmlStr='';
$.each(travelData,function(index,item){
    travelHtmlStr+='<li class="skeleton"><a href="travelDatail.html?id='+item.id+'"><img src="images/img/'+item.src+'"><p>'+item.title+'</p><div><span>席位充足</span> <p><span class="price">'+item.price+'</span>起</p></div></a></li>';
})

$('.travel-ullist').append(travelHtmlStr);

//旅游列表模拟数据
var localDate=[
    {
        id:"100002013",
        src:"travel-show_01.jpg",
        width:"60%"
    },
    {
        id:"100002014",
        src:"travel-show_02.jpg",
        width:"40%"
    },
    {
        id:"100002015",
        src:"travel-show_03.jpg",
        width:"40%"
    },
    {
        id:"100002016",
        src:"travel-show_04.jpg",
        width:"60%"
    }
]

var localHtmlStr='';
$.each(localDate,function(index,item){
    // console.log(index,item);
    localHtmlStr+='<div class="travel-show" data-id="'+item.id+'" style="width:'+item.width+'"><a href="travelDatail.html?id='+item.id+'"><img src="images/img/'+item.src+'"><div class="lijian"></div></a></div>';
})

$('.travel-sec-main').append(localHtmlStr);

$(function(){
    console.log('加载完毕');
    setTimeout(() => {
        $('body div').removeClass('skeleton');
        $('body p').removeClass('skeleton');
        $('body ul li').removeClass('skeleton');
    }, 500)
})